//
//  HOPImageView.swift
//  WB01
//
//  Created by HOP on 16/1/3.
//  Copyright © 2016年 HOP. All rights reserved.
//

import UIKit

import FLAnimatedImage

class HOPImageView: FLAnimatedImageView {

   // 覆盖父类的属性
   override var transform: CGAffineTransform {
    didSet {
    print("transform.a: \(transform.a)")
    // 当scrollView设置的transform缩放比例比指定的最小缩放比例还小时,重新设置transform
        if transform.a < ImageViewMinimumZoomScale {
        // 重新设置transform,为最小缩放比例
        transform = CGAffineTransformMakeScale(ImageViewMinimumZoomScale, ImageViewMinimumZoomScale)
        }
      }
    }
}
